{include file="file:$theme_global/_header.tpl"}	
<div class="title">
	{if $mca ne "default-user-profile"}
	<h1><a href="/profile/{$nav_username}" title="{$user.username}">{$user.username}</a></h1>
	{else}
	<h1>{$user.username}</h1>
	{/if}
</div>
<div id="sub">
	{include file="file:$theme_global/_user_image.tpl"}	
	<div class="sub">
		{include file="file:$theme_global/_user_nav.tpl"}
	</div>		
</div>
<div id="main">
	<div class="main">
		<div class="title"><h2>Upload New Image</h2></div>
		<div class="sec">
			<div class="inner">
				{include file="file:$theme_global/_messages.tpl"}
				<p>Images should be in JPG, GIF or PNG format and will be resized to {$image_size} pixels on the longest side.</p>
				<form method="post" action="/user/uploadimage" enctype="multipart/form-data">
					<fieldset>
						<div class="field">
							<label for="image_field">Select file</label>
							<div class="input">
								<input type="file" value="" name="image_field" id="image_field" size="30" class="text" />
							</div>
						</div>
					</fieldset>
					<div class="submit">
						<button type="submit" class="upload">Upload</button>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>		
{include file="file:$theme_global/_footer.tpl"}